#ifndef _INCLUDE_SEMAPHORE_
#define _INCLUDE_SEMAPHORE_

#include "types.h"

HANDLE CreateSem (KEY key, int val, int maxVal);		// create and initialize a semaphore with a given key, initial value and a max value
HANDLE OpenSem (KEY key);
void CloseSem (HANDLE hSem);
void AcquireSem (HANDLE hSem);
void ReleaseSem (HANDLE hSem);

#endif
